#ifndef __FourDirectionMoveController_H__ 
#define __FourDirectionMoveController_H__ 

#include "cocos2d.h" 
#include "Controller.h"

USING_NS_CC; 

class FourDirectionMoveController : public Controller{ 
public:
	CREATE_FUNC(FourDirectionMoveController);
	bool init();
	void update(float dt);
	void setMoveSpeed(int moveSpeed);
	void setRotaSpeed(int rotaSpeed);
	void checkDirection();
	bool isPress();
	void stop();
private:
	bool press[4];
	EightDirection m_direction;
	int m_moveSpeed;
	int m_rotaSpeed;
	void registeKeyBoardEvent();
}; 


#endif // __FourDirectionMoveController_H__ 
